Cavern

 Cavern4D

 Cavernize

 Debug

 FilterInterfaces

 Filters

 Format

 Helpers

 QuickEQ

 Remapping

 SpecialSources

 Spoofer

 Utilities

 Virtualizer

 Atmosphere

 AudioClip3D

 AudioListener3D

 AudioListener3DInspector

 AudioSource3D

  AddFilter(Filter)

  clip

  Clip

  Clip3D

  CopySettings(AudioSource3D)

  DistanceSimulation

  dopplerLevel

  DopplerLevel

  HasClip

  isPlaying

  IsPlaying

  LFE

  loop

  Loop

  mute

  Mute

  panStereo

  Pause()

  pitch

  Pitch

  Play(long)

  PlayClipAtPoint(AudioClip, Vector3, float)

  PlayDelayed(float)

  PlayOneShot(AudioClip, float, bool)

  RandomPosition

  RemoveFilter(Filter)

  SampleRate

  Samples

  Size

  Source cavernSource

  SourceUpdate()

  spatialBlend

  SpatialBlend

  SpatialFilter

  StereoPan

  Stop()

  time

  timeSamples

  TogglePlay()

  UnPause()

  volume

  Volume

  VolumeRolloff

 CavernizeRealtime

 Channel

 Clip

 Environments

 Jack

 Listener

 QualityModes

 Rolloffs

 SeatAdaptation

 Source

class AudioSource3D

An audio object in 3D space, in stereo, or both.
VisibilityPublic
ExtendsMonoBehaviour

Public functions

void AddFilter(Filter target)Add a new SpatialFilter to this source.
void CopySettings(AudioSource3D from)Copy the settings of another AudioSource3D.
void Pause()Pause playback if it's not paused.
void Play(long delaySamples = 0)Start playback from the beginning of the clip.
void PlayDelayed(float seconds)Start playback from the beginning after the given time.
void PlayOneShot(AudioClip clip, float volume = 1, bool isStatic = false)Play a clip once.
void RemoveFilter(Filter target)Remove a SpatialFilter from this source.
void Stop()Pause playback and reset position. The next UnPause will start playback from the beginning.
void TogglePlay()Toggle between playback and pause.
void UnPause()Continue playback if it's paused.

Public static functions

void PlayClipAtPoint(AudioClip clip, Vector3 position, float volume = 1)Play a clip once at the given world position.

Protected functions

void SourceUpdate()Synchronize this interface with cavernSource.

Public properties

AudioClip clipAlias for Clip.
float dopplerLevelAlias for DopplerLevel.
bool HasClip True if the source has an active clip.
bool isPlayingAlias for IsPlaying.
bool loopAlias for Loop.
bool muteAlias for Mute.
float panStereoAlias for StereoPan.
float pitchAlias for Pitch.
int SampleRateSample rate or -1 if there's no active clip.
int SamplesSample count for a single channel or -1 if there's no active clip.
float spatialBlendAlias for SpatialBlend.
float timeClip playback position in seconds.
int timeSamplesClip playback position in samples.
float volumeAlias for Volume.

Public variables

AudioClip ClipThe audio clip to play. If given, it will be converted to Cavern's Clip format.
Clip Clip3DThe audio clip to play in Cavern's format. Overrides Clip.
bool DistanceSimulationSimulates distance, not just direction when using virtualization.
float DopplerLevelDoppler effect scale, 1 is real.
bool IsPlayingContinue playback of the source.
bool LFEOnly mix this channel to subwoofers.
bool LoopRestart the source when finished.
bool MuteMute the source.
float PitchPlayback speed with no pitch correction.
bool RandomPositionStart playback from a random position.
float SizeAudio source size relative to Listener.EnvironmentSize. 0 is a point, 1 is the entire room.
float SpatialBlendBalance between 1D and 3D mixing. 0 is 1D and 1 is 3D.
Filter SpatialFilterFilter to be applied on the 3D mixed output.
float StereoPanBalance between left and right channels.
float VolumeSource playback volume.
Rolloffs VolumeRolloffVolume decreasing function by distance.

Protected variables

internal Source cavernSourceCavern source handled by this component.

See also

CavernUnity DLL.Cavern.Helpers.ExternalSourceHandles and synchronizes an AudioSource3D with an input device.
CavernUnity DLL.Cavern.Helpers.ScaleByGainScale an object by an AudioSource3D's current gain.
CavernUnity DLL.Cavern.SpecialSources.InfiniteSource3DAn AudioSource3D with an intro Clip and a looping part after.
CavernUnity DLL.Cavern.Spoofer.AudioSourceSpooferConverts a regular AudioSource to Cavern's AudioSource3D.
CavernUnity DLL.Cavern.AudioListener3DThe center of the listening space. AudioSource3Ds will be rendered relative to this GameObject's position.
CavernUnity DLL.Cavern.AudioSource3D.CopySettings(AudioSource3D from)Copy the settings of another AudioSource3D.